const Router = require("koa-router");

const router = new Router({ prefix: "/admin" });

const {
  login,
  getAllUserInfo,
  getAllCollect,
} = require("../controller/admin.controller");

//! 登录接口
router.post("/login", login);

//! 获取所有用户信息
router.get("/get_all_user_info", getAllUserInfo);

//! 获取每个用户收藏的帖子和评论区
router.get("/get_all_collect", getAllCollect);

module.exports = router;
